package com.yyg.boot;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BannerApplication {

    public static void main(String[] args) {
        //SpringApplication.run(BannerApplication.class, args);
        SpringApplication application=new SpringApplication(BannerApplication.class);
        //设置banner模式,不需要打印banner可以关闭,默认是开启的
        application.setBannerMode(Banner.Mode.CONSOLE);
        application.run(args);
    }

}
